﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FormsUbigeo.aspx.cs" Inherits="solcred_popups_FormsUbigeo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
<script language="javascript" type="text/javascript">
    function enviarParam() {
        arrSolicitud = new Array(document.getElementById('<%=this.hdfDireccion.ClientID%>').value,document.getElementById('<%=this.hdfCodigoDepartamento.ClientID%>').value, document.getElementById('<%=this.hdfCodigoProvincia.ClientID%>').value, document.getElementById('<%=this.hdfCodigoDistrito.ClientID%>').value, document.getElementById('<%=this.hdfUbigeo.ClientID%>').value);
        window.returnValue = arrSolicitud;  // arrSolicitud; 
        window.close();
    }
</script>
    <form id="form1" runat="server">
    

                                <table cellspacing="0px" cellpadding="0px" width="100%" border="0px">
                                    <tr valign="top">
                                        <td class="encebezadotabla-2" width="100%" align="center">
                                            <b>
                                                
                                                <asp:Label ID="lblTituloPopup" runat="server" Text="Direccion" ForeColor="White" />
                                            </b>
                                        </td>
                                    </tr>
                                </table>
    
    
    
    <table>
        <tr>
            <td>
                <asp:Label ID="lblDireccion" runat="server" Text="Direccion :"></asp:Label>
            </td>
            <td>
            <asp:HiddenField ID="hdfDireccion" runat="server" />
            <asp:HiddenField ID="hdfCodigoDepartamento" runat="server" />
            <asp:HiddenField ID="hdfCodigoProvincia" runat="server" />
            <asp:HiddenField ID="hdfCodigoDistrito" runat="server" />
            <asp:HiddenField ID="hdfUbigeo" runat="server" />
            
                <asp:TextBox ID="txtDireccion" runat="server" TextMode="MultiLine" Width="350px" Height="80px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td><asp:Label ID="lblDepartamento" runat="server" Text="Departamento"></asp:Label> </td>
            <td><asp:DropDownList ID="ddlDepartamento" runat="server" Width="250px" 
                    AutoPostBack="True" 
                    onselectedindexchanged="ddlDepartamento_SelectedIndexChanged"></asp:DropDownList></td>
        </tr>
        <tr>
            <td><asp:Label ID="lblProvincia" runat="server" Text="Provincia"></asp:Label> </td>
            <td><asp:DropDownList ID="ddlProvincia" runat="server"  Width="250px" 
                    AutoPostBack="True" onselectedindexchanged="ddlProvincia_SelectedIndexChanged"></asp:DropDownList></td>
        </tr>
        <tr>
            <td><asp:Label ID="lblDistrito" runat="server" Text="Distrito"></asp:Label> </td>
            <td><asp:DropDownList ID="ddlDistrito" runat="server"  Width="250px"></asp:DropDownList></td>
        </tr>
        <tr>
        <td>
        &nbsp
        </td>
        </tr>
        <tr>
        <td colspan="2" align="right">
            <asp:Button ID="btnAceptar" runat="server" Text="Aceptar" 
                onclick="btnAceptar_Click" /> &nbsp 
            <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" />
        </td>
        </tr>
    </table>
    </form>
</body>
</html>
